FROM java:8
MAINTAINER CaineZhu@me.com
RUN mkdir -p /usr/share/zoneinfo/Asia/
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo 'Asia/Shanghai' >/etc/timezone
ENV LANG C.UTF-8
VOLUME /data/apps
COPY ./target/web.jar app.jar
EXPOSE 8080
#ENTRYPOINT ["java","-Xdebug","-Xrunjdwp:transport=dt_socket","address=8395","server=y","suspend=n","-Xms128M","-Xmx128M","-XX:PermSize=128m","-XX:MaxPermSize=128m","-XX:MaxNewSize=128m","-jar","/app.jar"]
ENTRYPOINT ["java","-Xms128M","-Xmx128M","-XX:PermSize=128m","-XX:MaxPermSize=128m","-XX:MaxNewSize=128m","-jar","/app.jar"]